package com.wdc.domain.activity.service;

import com.wdc.domain.activity.model.entity.ActivityCountEntity;
import com.wdc.domain.activity.model.entity.ActivityEntity;
import com.wdc.domain.activity.model.entity.ActivitySkuEntity;
import com.wdc.domain.activity.repository.IActivityRepository;
import com.wdc.domain.activity.service.rule.factory.DefaultActionFactory;

import javax.annotation.Resource;

/**
 * 抽奖活动支撑类
 */
public class RaffleActivitySupport {


    protected DefaultActionFactory defaultActionFactory;

    protected IActivityRepository activityRepository;

    public RaffleActivitySupport(DefaultActionFactory defaultActionFactory, IActivityRepository activityRepository) {
        this.defaultActionFactory = defaultActionFactory;
        this.activityRepository = activityRepository;
    }

    public ActivitySkuEntity queryActivitySku(Long sku) {
        return activityRepository.queryActivitySku(sku);
    }

    ActivityEntity queryRaffleActivityByActivityId(Long activityId) {
        return activityRepository.queryRaffleActivityByActivityId(activityId);
    }
    ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId) {
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }



}
